package com.slanmao.exception;

import lombok.Data;

/**
 * <CODE>CommonException</CODE>
 * 通用异常
 * @author fenrir
 * @Date 19-2-28
 */
@Data
public class CommonException extends Exception{

    private int code;
    private String message;

    public CommonException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
